# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-hatari
pkgver=0_git20220327
pkgrel=0
_commit="e5e36a5262cfeadc3d1c7b411b7a70719c4f293c"
pkgdesc="Atari ST/STE/TT/Falcon emulator for libretro"
url="https://github.com/libretro/hatari"
arch="all"
license="GPL-2.0-only"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/hatari/archive/$_commit.tar.gz"
builddir="$srcdir/hatari-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 hatari_libretro.so "$pkgdir"/usr/lib/libretro/hatari_libretro.so
}

sha512sums="
dc32696e3eb93c62f611c0dfa1b9bd70b239a3df59ce22f028c5e8f388d83c8faaeb7f507d30781c4fff2690185196ab0803f3b945f31b6b4856a8732d48bac0  libretro-hatari-e5e36a5262cfeadc3d1c7b411b7a70719c4f293c.tar.gz
"
